package com.jhws.business.comm.bo;

import javax.persistence.*;
import java.util.Date;

@Table(name = "room")
@Entity
public class Room {
    @Id
    @Column(name = "id")
    private String id; // id
    @Column(name = "comm_code")
    private String commCode; //小区编号
    @Column(name = "building_code")
    private String buildingCode; //栋号
    @Column(name = "unit_code")
    private String unitCode; //单元号
    @Column(name = "floor_code")
    private String floorCode; //楼层号
    @Column(name = "room_code")
    private String roomCode; //房号
    @Column(name = "room_type_id")
    private Long roomTypeId; //户型Id
    @Column(name = "creation_time")
    private Date creationTime; //创建时间
    @Column(name = "description")
    private String description; //描述

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCommCode() {
        return commCode;
    }

    public void setCommCode(String commCode) {
        this.commCode = commCode;
    }

    public String getBuildingCode() {
        return buildingCode;
    }

    public void setBuildingCode(String buildingCode) {
        this.buildingCode = buildingCode;
    }

    public String getUnitCode() {
        return unitCode;
    }

    public void setUnitCode(String unitCode) {
        this.unitCode = unitCode;
    }

    public String getFloorCode() {
        return floorCode;
    }

    public void setFloorCode(String floorCode) {
        this.floorCode = floorCode;
    }

    public String getRoomCode() {
        return roomCode;
    }

    public void setRoomCode(String roomCode) {
        this.roomCode = roomCode;
    }

    public Long getRoomTypeId() {
        return roomTypeId;
    }

    public void setRoomTypeId(Long roomTypeId) {
        this.roomTypeId = roomTypeId;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Room{" +
                "id=" + id +
                ", commCode='" + commCode + '\'' +
                ", buildingCode='" + buildingCode + '\'' +
                ", unitCode='" + unitCode + '\'' +
                ", floorCode='" + floorCode + '\'' +
                ", roomCode='" + roomCode + '\'' +
                ", roomTypeId='" + roomTypeId + '\'' +
                ", creationTime=" + creationTime +
                ", description='" + description + '\'' +
                '}';
    }
}
